package concrete_factory;

import abstract_factory.AbstractFactory;
import abstract_product.Archer;
import abstract_product.Magician;
import abstract_product.Warrior;
import concrete_product.*;

// 具体工厂
public class OrcFactory implements AbstractFactory {
    @Override
    public Magician getMagician() {
        return new OrcMagician();
    }

    @Override
    public Warrior getWarrior() {
        return new OrcWarrior();
    }

    @Override
    public Archer getArcher() {
        return new OrcArcher();
    }
}
